package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SDrugBagInfo extends Object implements IMessageBase
    {
        public var type:int;
        public var remain:int;
        public var useDt:Date;
        public const _type:int = 12060;
        public static var _regist:SDrugBagInfo = new SDrugBagInfo(true);

        public function SDrugBagInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SDrugBagInfo();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.type);
            param1.writeInt(this.remain);
            param1.writeDate(this.useDt);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.type = param1.readInt();
            this.remain = param1.readInt();
            this.useDt = param1.readDate();
            
        }

    }
}
